export interface general {
  code: number
  message: string
  ok: boolean
}
export interface postOrderType extends general {
  data: string
}
export interface orderDataType {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    orderStatusString: string
  }
  userId: number
  outTradeNo: string
  hoscode: string
  hosname: string
  depcode: string
  depname: string
  scheduleId: string
  title: string
  reserveDate: string
  reserveTime: number
  patientId: number
  patientName: string
  patientPhone: string
  hosRecordId: string
  number: number
  fetchTime: string
  fetchAddress: string
  amount: number
  quitTime: string
  orderStatus: number
}
export interface orderType extends general {
  data: orderDataType
}

export interface twoDim {
  codeUrl: string
  orderId: number
  totalFee: number
  resultCode: string
}
export interface twoDimType extends general {
  data: twoDim
}
export interface orderStatus extends general {
  data: boolean
}

export interface order {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    orderStatusString: string
  }
  userId: number
  outTradeNo: string
  hoscode: string
  hosname: string
  depcode: string
  depname: string
  scheduleId: boolean
  title: string
  reserveDate: string
  reserveTime: number
  patientId: number
  patientName: string
  patientPhone: string
  hosRecordId: string
  number: number
  fetchTime: string
  fetchAddress: string
  amount: number
  quitTime: string
  orderStatus: number
}

export type records = order[]

export interface allOrderType extends general {
  data: {
    records: records
    total: number
    size: number
    current: number
    orders: []
    hitCount: boolean
    searchCount: boolean
    pages: number
  }
}

// 订单状态
export interface status {
  comment: string
  status: number
}
export type statusList = status[]

export interface statusType extends general{
    data:statusList
}
// 获取所有订单
export interface all {
  authStatus: number
  certificatesNo: string
  certificatesType: string
  certificatesUrl: string
  createTime: string
  id: number
  isDeleted: number
  name: string
  nickName: string
  openid: string
  param: object
  phone: string
  status: number
  updateTime: string
}
export interface allUserType extends general { 
    data:all
}
//代表证件类型的数据ts
export interface CertationType {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {

    },
    "parentId": number,
    "name": string,
    "value": string,
    "dictCode": string,
    "hasChildren": boolean
}
export type CertationArr = CertationType[];
export interface CertationTypeResponseData extends general {
    data: CertationArr
}
//新增与修改已有的就诊人参数的数据ts类型
export interface AddOrUpdateUser {
  id?: string
  name: string
  certificatesType: string
  certificatesNo: string
  sex: number | string
  birthdate: string
  phone: string | string
  isMarry: number | string
  isInsure: number | string
  addressSelected: string[]
  address: string
  contactsName: string
  contactsCertificatesType: string
  contactsCertificatesNo: string
  contactsPhone: string
}
